var Radio=require('./radio.js');
var inforObj={"radioName":"music radio"};
var radio=new Radio(inforObj);

radio.on("play",function(){
    console.log(radio.radioName+":FM 106.7 opened");
})
radio.on("go",function(){
    console.log("lalalalala...");
})
radio.on("stop",function(){
    console.log(this.radioName+":FM 106.7 stopped");
})

radio.emit("play");

setTimeout(function(){
    radio.emit("go");
},2000);

setTimeout(function(){
    radio.emit("stop");
},5000);